package org.dydl.common.dto;

import java.io.Serializable;
import java.util.List;

public class ResponseData<T> implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int pageSize = 0;
	private int totalPage = 0;
	private int pageNumber = 0;
	private int totalRow = 0;
	private List<T> list;

	public ResponseData() {
	}

	public ResponseData(int pageNumber, int totalPage, int totalRow, List<T> list) {
		this.pageNumber = pageNumber;
		this.totalPage = totalPage;
		this.totalRow = totalRow;
		this.list = list;
	}

	public ResponseData(int pageSize, int totalPage, int pageNumber, int totalRow, List<T> list) {
		this.pageSize = pageSize;
		this.totalPage = totalPage;
		this.pageNumber = pageNumber;
		this.totalRow = totalRow;
		this.list = list;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int total) {
		this.totalPage = total;
	}

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int page) {
		this.pageNumber = page;
	}

	public int getTotalRow() {
		return totalRow;
	}

	public void setTotalRow(int records) {
		this.totalRow = records;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> rows) {
		this.list = rows;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

}
